home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 February / maximum-cd-2000-02.iso / Flash 4 / data1.cab / App_Files / Players / Flash_Player_Java(tm)_Edition / Semaphore.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-06-15  |  412 b   |  42 lines

  1. final class Semaphore {
  2.    // $FF: renamed from: ╞ç boolean
  3.    private boolean field_0;
  4.  
  5.    Semaphore(boolean var1) {
  6.       this.field_0 = var1;
  7.    }
  8.  
  9.    // $FF: renamed from: ╞ç () void
  10.    synchronized void method_0() {
  11.       while(!this.field_0) {
  12.          this.wait();
  13.       }
  14.  
  15.    }
  16.  
  17.    // $FF: renamed from: ╞ê () void
  18.    synchronized void method_1() {
  19.       while(!this.field_0) {
  20.          this.wait();
  21.       }
  22.  
  23.       this.field_0 = false;
  24.    }
  25.  
  26.    // $FF: renamed from: ├Ä () void
  27.    synchronized void method_2() {
  28.       if (!this.field_0) {
  29.          this.field_0 = true;
  30.       }
  31.  
  32.       this.notifyAll();
  33.    }
  34.  
  35.    // $FF: renamed from: ╞ë () boolean
  36.    synchronized boolean method_3() {
  37.       boolean var1 = this.field_0;
  38.       this.field_0 = false;
  39.       return var1;
  40.    }
  41. }
  42.